package OOday01.HomeWork;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/6 18:11
 */
public class Car {
    String brand;
    String color;
    double price;
    int capacity;
    Car(){

    }
    Car(String brand, String color, double price,int capacity){
        this.brand=brand;
        this.color=color;
        this.price=price;
        this.capacity=capacity;
    }
    void start(){
        System.out.println("sfjlka"+color);
    }
    void run(){

        System.out.println(this.brand+"车跑了");
    }
    void stop(){
        System.out.println(brand+color+price+capacity+"车停了");
    }

}
